<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 快速的从对象和数组中获取里面的成员
      var arr = ['xm', 'cxm', 'zll']

      let [x, y, z] = arr
      console.log(x, y, z) //xm cxm zll

      // 三维数组
      var arr2 = [1, 2, [3, 4, [5]]]
      // console.log(arr2[2][2]) // [5]
      var [a, b, [c, d, [e]]] = arr2
      console.log(e) // [5]
    </script>
  </body>
</html>
